<template>
  <div class="app-container home">
        <div class="el-card flex-1 border-none lists" >
          <div class="el-card__header"><span>常用功能</span></div>
          <div class=" flex-wrap-li">
            <div
                v-for="item in menu.list"
                class=" items-center-li"
            >
              <router-link :to="item.url" class=" flex  items-center-li">
                <img  class="itemimg" :src="item.image" />
                <!--              <img  class="itemimg" src="@/assets/images/menu_admin.png" />-->
                <div class="mt-2">{{ item.name }}</div>
              </router-link>
            </div>
          </div>
        </div>


  </div>
</template>

<script setup name="Index">
const version = ref('3.8.6')
import { getAssetsImages } from '@/utils/ruoyi'
const menu = reactive({
  list: [
    {
      "name": "管理员",
      "image": getAssetsImages("menu_admin.png"),
      "url": "/system/user"
    },
    {
      "name": "角色管理",
      "image": getAssetsImages("menu_role.png"),
      "url": "/system/role"
    },
    {
      "name": "部门管理",
      "image": getAssetsImages("menu_dept.png"),
      "url": "/system/dept"
    },

    {
      "name": "菜单权限",
      "image": getAssetsImages("menu_auth.png"),
      "url": "/system/menu"
    },
    // {
    //   "name": "网站信息",
    //   "image": getAssetsImages("menu_web.png"),
    //   "url": "/system/appConfig"
    // }
  ]
})


function goTarget(url) {
  window.open(url, '__blank')
}
</script>

<style scoped lang="scss">
.home {
  background-color: #f8f8f8;
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
  .flex-wrap-li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .items-center-li {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 10px 0px;
  }
  .items-center-li .itemimg{
    width: 40px !important;
    margin-bottom: 10px;
  }
  .el-card.border-none{
    border:none;
  }
  .lists{
    width: 100%;
  }
}
</style>

